const RouteWatcher = '@/components/PageTab/RouteWatcher';

export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { path: '/user', routes: [{ name: '登录', path: '/user/login', component: './user/Login' }] },
      { component: './404' },
    ],
  },
  { path: '/screen', name: '大屏展示', icon: 'smile', component: './screen', layout: false },
  { path: '/overview', name: '项目总览', icon: 'smile', component: './overview', wrappers: [RouteWatcher] },
  {
    path: '/monitoring',
    name: '实时监控',
    icon: 'table',
    routes: [
      { path: '/monitoring/detailsV1/:type/:id', name: '实时数据', hideInMenu: true, component: './monitoring/details', wrappers: [RouteWatcher] },
      { path: '/monitoring/details/2/:id', name: '实时数据', hideInMenu: true, component: './monitoring/new_details/mabao', wrappers: [RouteWatcher] },
      { path: '/monitoring/details/1/:id', name: '实时数据', hideInMenu: true, component: './monitoring/new_details/transducer', wrappers: [RouteWatcher] },
    
      { path: '/monitoring/design/:id', name: '设计页面',component: './monitoring/design', wrappers: [RouteWatcher] },
      { path: '/monitoring/designDetails/:id', name: '实时数据预览页面',component: './monitoring/designDetails', wrappers: [RouteWatcher] },
      { path: '/monitoring/details/3/:id', name: '实时数据', hideInMenu: true, component: './monitoring/new_details/smartMeter', wrappers: [RouteWatcher] },
      { path: '/monitoring/realtime/:type?', name: '实时监控', component: './monitoring/realtime', wrappers: [RouteWatcher] },
      { name: '找不到了', component: './404', wrappers: [RouteWatcher] },
    ],
  }, 
  {
    path: '/operationAnalysis',
    icon: 'table',
    component: './operationAnalysis',
    name: '运行分析',
     wrappers: [RouteWatcher]
  }, {
    path: '/energyAnalysis',
    icon: 'table',
    name: '能耗分析',
    routes: [
      {
        path: '/energyAnalysis/survey',
        name: '能耗概况',
        component: './energyAnalysis/survey',
        wrappers: [RouteWatcher],
      },
      {
        name: '同比分析',
        path: '/energyAnalysis/sameAnalysis',
        component: './energyAnalysis/sameAnalysis',
        wrappers: [RouteWatcher],
      },
      {
        path: '/energyAnalysis/chainAnalysis',
        name: '环比分析',
        component: './energyAnalysis/chainAnalysis',
        wrappers: [RouteWatcher],
      },
      {
        name: '能耗报表',
        path: '/energyAnalysis/area/report',
        component: './energyAnalysis/report',
        wrappers: [RouteWatcher],
      },
      {
        name: '能耗报表',
        path: '/energyAnalysis/device/report',
        component: './energyAnalysis/report1',
        wrappers: [RouteWatcher],
      },
      {
        name: '电能报表',
        path: '/energyAnalysis/electricEnergyReport',
        component: './energyAnalysis/electricEnergyReport',
        wrappers: [RouteWatcher],
      },
      {
        name: '单品能耗',
        path: '/energyAnalysis/unit_report',
        component: './energyAnalysis/unit_report',
        wrappers: [RouteWatcher],
      }
      
    ],
  },
  {
    path: '/alarm',
    icon: 'table',
    name: '报警管理',
    routes: [
      { name: '报警总览', path: '/alarm/overview', component: './alarm/overview', wrappers: [RouteWatcher] },
      { name: '设备自身报警', path: '/alarm/selfAlarm', component: './alarm/selfAlarm', wrappers: [RouteWatcher] },
      { name: '报警规则', path: '/alarm/rules', component: './alarm/rules', wrappers: [RouteWatcher] },
      { name: '报警规则详情', path: '/alarm/rules/:id', component: './alarm/rules/details', wrappers: [RouteWatcher] },
      { name: '规则详情', path: '/alarm/rules/details/:rulesId', component: './alarm/rules/details', wrappers: [RouteWatcher] },
      { name: '报警记录', path: '/alarm/record/:type?', component: './alarm/record', wrappers: [RouteWatcher] },  
      { name: '报警详情', path: '/alarm/details/:deviceId/:attrId', component: './alarm/record/details', wrappers: [RouteWatcher] },  
      { name: '报警详情', path: '/alarm/details/:deviceId', component: './alarm/record/old_details', wrappers: [RouteWatcher] },  
      { name: '找不到了', component: './404', wrappers: [RouteWatcher] },
    ],
  },
  {
    path: '/device',
    name: '设备管理',
    icon: 'table',
    routes: [
      //  { path: '/device/list', name: '设备列表', component: './device/list', wrappers: [RouteWatcher] },
      { path: '/device/list/:type?', name: '设备列表', component: './device/list', wrappers: [RouteWatcher] },
      { path: '/device/area', name: '区域管理', component: './device/area', wrappers: [RouteWatcher] },
      { path: '/device/type', name: '设备类型', component: './device/type', wrappers: [RouteWatcher] },
      { path: '/device/definition', name: '设备定义', component: './device/definition', wrappers: [RouteWatcher] },
      { path: '/device/details/:id', name: '设备详情', hideInMenu: true, component: './device/details', wrappers: [RouteWatcher] },
      { path: '/device/create', name: '添加设备', hideInMenu: true, component: './device/list/Create'},
      { name: '找不到了', component: './404', wrappers: [RouteWatcher] },
    ],
  },{
    path: '/linkage',
    icon: 'table',
    name: '联动管理',
    // access:'canAdmin',
    routes: [
      { path: '/linkage/record', name: '联动记录', component: './linkage/record', wrappers: [RouteWatcher] },
      { path: '/linkage/list', name: '联动规则', component: './linkage/list', wrappers: [RouteWatcher] },
      { path: '/linkage/details/:id', name: '联动任务详情', hideInMenu: true, component: './linkage/list/details', wrappers: [RouteWatcher] },
    ],
  },
  {
    path: '/mochaITOM',
    icon: 'table',
    name: '运维管理',
    routes: [
      { path: '/mochaITOM/patroljob', name: '巡检任务', component: './mochaITOM/patroljob', wrappers: [RouteWatcher] },
      { path: '/mochaITOM/patrolRecord', name: '巡检记录', component: './mochaITOM/patrolRecord', wrappers: [RouteWatcher] },
      { path: '/mochaITOM/patrolJobDetails/:id', name: '巡检项目', component: './mochaITOM/patrolJobDetails', wrappers: [RouteWatcher], hideInMenu: true },
      { path: '/mochaITOM/patrolRecordDetails/:id/:jobId',name: '巡检项目', component: './mochaITOM/patrolRecordDetails', wrappers: [RouteWatcher], hideInMenu: true },
      { path: '/mochaITOM/patrolRecordDetails1/:jobId',  layout: false,name: '巡检项目', component: './mochaITOM/patrolRecordDetails2', hideInMenu: true },
      { path: '/mochaITOM/patrolRecordDetails1/result/:jobId',  layout: false,name: '结果页', component: './mochaITOM/patrolRecordDetails1/components/result', hideInMenu: true },
      { path: '/mochaITOM/defectRecord', name: '缺陷记录', component: './mochaITOM/defectRecord', wrappers: [RouteWatcher] },

      { name: '找不到了', component: './404', wrappers: [RouteWatcher] },
    ],
  },
  {
    path: '/authority',
    name: '系统管理',
    icon: 'table',
    // access:'canAdmin',
    routes: [
      { path: '/authority/department', name: '部门管理', component: './authority/department', wrappers: [RouteWatcher] },
      { path: '/authority/personnel', name: '人员管理', component: './authority/personnel', wrappers: [RouteWatcher] },
      { path: '/authority/personnel/updatePassword', name: '修改密码', component: './authority/personnel/components/UpdatePassword', wrappers: [RouteWatcher] },
      { path: '/authority/jurisdiction', name: '角色管理', component: './authority/jurisdiction', wrappers: [RouteWatcher] },
      { path: '/authority/modules', name: '菜单管理', component: './authority/modules', wrappers: [RouteWatcher] },
      { path: '/authority/dict', name: '字典管理', component: './authority/dict', wrappers: [RouteWatcher] },
      { path: '/authority/log', name: '操作日志', component: './authority/log', wrappers: [RouteWatcher] },
      { path: '/authority/logDownload', name: '下载日志', component: './authority/logDownload', wrappers: [RouteWatcher] },
      { path: '/authority/logRunning', name: '运行日志', component: './authority/logRunning', wrappers: [RouteWatcher] },
      { path: '/authority/logException', name: '异常日志', component: './authority/logException', wrappers: [RouteWatcher] },
      { path: '/authority/deviceattr', name: '设备变量', component: './authority/deviceattr', wrappers: [RouteWatcher] },
      { path: '/authority/driver', name: '驱动信息', component: './authority/driver', wrappers: [RouteWatcher] },
      { path: '/authority/task', name: '定时任务', component: './authority/task', wrappers: [RouteWatcher] },
      { component: './404', wrappers: [RouteWatcher] },
    ],
  },
  {
    path: '/monitoring3D',
    name: '实时监控-3D',
    icon: 'table',
    // access:'canAdmin',
    routes: [
      { path: '/monitoring3D/index1', name: '储能站', component: './3dtest/index1', wrappers: [RouteWatcher] },
      { path: '/monitoring3D/index2', name: '机房管理', component: './3dtest/index2', wrappers: [RouteWatcher] },
      { path: '/monitoring3D/index3', name: '建筑监控', component: './3dtest/index3', wrappers: [RouteWatcher] },
      { path: '/monitoring3D/index4', name: '智慧工厂', component: './3dtest/index4', wrappers: [RouteWatcher] },
      { path: '/monitoring3D/index5', name: '化工厂', component: './3dtest/index5', wrappers: [RouteWatcher] },
      { path: '/monitoring3D/index6', name: '储能站冬天', component: './3dtest/index6', wrappers: [RouteWatcher] },
      { path: '/monitoring3D/index7', name: '物业监控', component: './3dtest/index7', wrappers: [RouteWatcher] },
      { path: '/monitoring3D/index8', name: '园区监控', component: './3dtest/index8', wrappers: [RouteWatcher] },
    ],
  },
  {
    path: '/overview3D',
    name: '项目总览-3D',
    icon: 'table',
    // access:'canAdmin',
    routes: [
      { path: '/overview3D/index1', name: '项目总览1', component: './overview3D/index1', wrappers: [RouteWatcher] },
      { path: '/overview3D/index2', name: '项目总览2', component: './overview3D/index2', wrappers: [RouteWatcher] },
      { path: '/overview3D/index3', name: '项目总览3', component: './overview3D/index3', wrappers: [RouteWatcher] },
 
    ],
  },
  {
    path: '/mocha3D',
    name: '运维大屏',
    icon: 'table',
    // access:'canAdmin',
    routes: [
      { path: '/mocha3D/index1', name: '运维大屏1', component: './overview3D/index4',layout: false , target:"_blank"},
      { path: '/mocha3D/index2', name: '运维大屏2', component: './overview3D/index5', layout: false , target:"_blank" },
      { path: '/mocha3D/index3', name: '运维大屏3', component: './overview3D/index6',layout: false  , target:"_blank"},
 
    ],
  },


  { path: '/drawing', name: '图纸管理', icon: 'smile', component: './drawing', wrappers: [RouteWatcher] },
  { path: '/preview/:id', name: '图纸预览', icon: 'smile', component: './drawing/preview', wrappers: [RouteWatcher] ,hideInMenu: true },
  { path: '/drawing/downloadList', name: '图纸下载记录', icon: 'smile', component: './drawing/downloadList', wrappers: [RouteWatcher] },
  { path: '/', redirect: '/overview', wrappers: [RouteWatcher] },
  { name: '找不到了', component: './404', wrappers: [RouteWatcher] },
];
